package org.example.spring.simple.framework.beans;

/**
 * 主要用于封装创建后的对象实例，
 * 代理对象（Proxy Object）或者原生对象（Original Object）都由BeanWrapper来保存。
 */
public class ZBeanWrapper {
    private Object wrapperInstance;
    private Class<?> wrappedClass;

    public ZBeanWrapper(Object wrapperInstance) {
        this.wrapperInstance = wrapperInstance;
    }

    public Object getWrapperInstance() {
        return this.wrapperInstance;
    }

    //返回代理后的class
    public Class<?> getWrappedClass() {
        return this.wrapperInstance.getClass();
    }
}

